package ModelLayer;


/**
 * This class contains the things which an item have ot contain.
 * 
 * @author Group1
 * @version 2011-06-05
 */
public class Item
{
    // instance variables - replace the example below with your own
    private double buyingPrice;
    private double sellingPrice;
    private String itemNumber;
    private String name;
    private int amountPrOrder;
    private int discount;
    private String locationsNumber;
    private String description;
    private Supplier supplier;
    private String barcode;
    private int amountInStock;
    private int minStock;
    private int maxStock;
    private boolean orderedBySupplier;
    
    
    /**
     * Creates an item
     */
    public Item(double buyingPrice, double sellingPrice, String itemNumber, String name, int amountPrOrder, int discount, String locationsNumber, String description, 
                Supplier supplier, int amountInStock, int minStock, int maxStock)
    {
        this.buyingPrice = buyingPrice;
        this.sellingPrice = sellingPrice;
        this.itemNumber = itemNumber;
        this.name = name;
        this.amountPrOrder = amountPrOrder;
        this.discount = discount;
        this.locationsNumber = locationsNumber;
        this.description = description;
        this.supplier = supplier;
        barcode = "";
        this.minStock = minStock;
        this.maxStock = maxStock;
        this.amountInStock = amountInStock;
        this.orderedBySupplier = orderedBySupplier;
    }
    
    public void setBarcode(String barcode)
    {
        this.barcode = barcode;
    }

    public String getBarcode()
    {
        return barcode;
    }
    
    public void setBuyingPrice(double buyingPrice)
    {
        this.buyingPrice = buyingPrice;
    }

    public double getBuyingPrice()
    {
        return buyingPrice;
    }
    
    public void setSellingPrice(double sellingPrice)
    {
        this.sellingPrice = sellingPrice;
    }

    public double getSellingPrice()
    {
        return sellingPrice;
    }
    
    public void setItemNumber(String itemNumber)
    {
        this.itemNumber = itemNumber;
    }

    public String getItemNumber()
    {
        return itemNumber;
    }
    
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    
    public void setAmountPrOrder(int amountPrOrder)
    {
        this.amountPrOrder = amountPrOrder;
    }

    public int getAmountPrOrder()
    {
        return amountPrOrder;
    }
    
    public void setDiscount(int discount)
    {
        this.discount = discount;
    }

    public int getDiscount()
    {
        return discount;
    }
    
    public void setLocationsNumber(String locationsNumber)
    {
        this.locationsNumber = locationsNumber;
    }

    public String getLocationsNumber()
    {
        return locationsNumber;
    }
    
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    
    public void setSupplier(Supplier supplier)
    {
        this.supplier = supplier;
    }

    public Supplier getSupplier()
    {
        return supplier;
    }
    
    public void setMinStock(int minStock)
    {
        this.minStock = minStock;
    }

    public int getMinStock()
    {
        return minStock;
    }
    
    public void setMaxStock(int maxStock)
    {
        this.maxStock = maxStock;
    }

    public int getMaxStock()
    {
        return maxStock;
    }
    
    public void setAmountInStock(int amountInStock)
    {
        this.amountInStock = amountInStock;
    }

    public int getAmountInStock()
    {
        return amountInStock;
    }
    
    public void setOrderedBySupplier(boolean orderedBySupplier)
    {
        this.orderedBySupplier = orderedBySupplier;
    }

    public boolean getOrderedBySupplier()
    {
        return orderedBySupplier;
    }
}
